package day05;

public class Bank {
	private Person[] per;
	
	private int num;

	public Bank() {
		per=new Person[10];
	}
	
	//添加存户
	public void addPerson(String name,int age) {
		Person pers=new Person(name,age);
	    per[num++]=pers;
	}
	
	//获取客户信息
	public Person getPer(int index) {
		return per[index];
	}

}
